//
//  ViewController.m
//  实现description方法
//
//  Created by weiguang on 2017/2/7.
//  Copyright © 2017年 weiguang. All rights reserved.
//

#import "ViewController.h"
#import "EOCPerson.h"
#import "EOCLocation.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
   
    EOCPerson *person = [[EOCPerson alloc] initWithFirstName:@"Bob" lastName:@"Smith"];
    EOCPerson *p1 = [person copy];
    NSLog(@"person = %@  p1 = %@",person,p1);
    
    EOCLocation *loaction = [[EOCLocation alloc] initWithTitle:@"London" latitude:51.506 longitude:0];
    NSLog(@"%@",loaction);
    
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
